#include <stdio.h>
#include <string.h>


int main()
{
    char a[10], b[10], temp[10];
    int c, d;

    scanf_s("%s", a);
    scanf_s("%s", b);
    printf("a=%s,b=%s\n", a, b);

    c = strlen(a);
    d = strlen(b);             

    if (c > d)
    {
        strcpy(temp, a);
        strcpy(a, b);
        strcpy(b, temp);
    }

    printf("a=%s,b=%s\n", a, b);


    return 0;
}